import request from '@/utils/request'
import { makeRequestJson } from '@/utils/common'

/**
 * 城市下拉列表获取
 * @param query
 * @returns {*}
 */
export function listCity() {
  return request(makeRequestJson('get', '/city'))
}

/**
 * 出发城市下拉列表获取
 * @param query
 * @returns {*}
 */
export function listStartCity() {
  return request(makeRequestJson('get', '/line/startCity'))
}

/**
 * 目的城市下拉列表获取
 * @param query
 * @returns {*}
 */
export function listEndCity() {
  return request(makeRequestJson('get', '/line/endCity'))
}

/**
 * 分公司下拉列表获取
 * @param query
 * @returns {*}
 */
export function listSelection() {
  return request(makeRequestJson('get', '/peer/selection'))
}
